woerterbuch = {"Germany" : "Deutschland", "Spain" : "Spanien"}
print(woerterbuch)
print(type(woerterbuch))

print()
woerterbuch = {"Germany" : "Deutschland",
               "Spain" : "Spanien",
               "France" : "Frankreich"}
print(woerterbuch)

print()
d = {"Germany" : "Deutschland",
     "Germany" : "Pusemuckel"}
print(d)

print()
d = {"Germany" : "Deutschland",
     "Allemagne" : "Pusemuckel"}
print(d)

print()
mapping = {0 : 1,
           "abc" : 0.5,
           1.2e22 : [1, 2, 3, 4],
           (1, 3, 3, 7) : "def"}
print(mapping)

print()
s = {i : i*i for i in range(5)}
print(s)
s = {"a" : 1, **{"b" : 2, "c"  : 3}}
print(s)

print()
#d = {[1, 2, 3] : "abc"} # TypeError: unhashable type: 'list'

print()
print()
woerterbuch = {"Germany" : "Deutschland",
               "Spain" : "Spanien",
               "France" : "Frankreich"}
for key in woerterbuch:
    print(key)
